home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Object = "{AE02E100-EB71-11D2-8B40-000000000000}#44.0#0"; "PCMREG1.ocx"
- Begin VB.Form Sample
- Caption = "Sample REG"
- ClientHeight = 4035
- ClientLeft = 60
- ClientTop = 345
- ClientWidth = 4230
- LinkTopic = "Form1"
- ScaleHeight = 4035
- ScaleWidth = 4230
- StartUpPosition = 3 'Windows Default
- Begin PCMREG.REG REG1
- Left = 3480
- Top = 120
- _ExtentX = 1085
- _ExtentY = 1085
- KeyCode = "mykeycode1"
- TrialDays = "30"
- End
- Begin VB.TextBox Text2
- Height = 285
- Left = 3000
- TabIndex = 10
- Text = "30"
- Top = 2880
- Width = 975
- End
- Begin VB.TextBox Text1
- Height = 285
- Left = 360
- TabIndex = 9
- Top = 2880
- Width = 2055
- End
- Begin VB.CommandButton Command3
- Caption = "Run"
- Height = 375
- Left = 1680
- TabIndex = 2
- Top = 3360
- Width = 855
- End
- Begin VB.CommandButton Command2
- Caption = "Update"
- Height = 375
- Left = 240
- TabIndex = 1
- Top = 3360
- Width = 855
- End
- Begin VB.CommandButton Command1
- Caption = "Exit"
- Height = 375
- Left = 3120
- TabIndex = 0
- Top = 3360
- Width = 855
- End
- Begin VB.Label Label11
- Caption = "Label11"
- Height = 255
- Left = 120
- TabIndex = 13
- Top = 1680
- Width = 2055
- End
- Begin VB.Label Label10
- Caption = "Days:"
- Height = 255
- Left = 2520
- TabIndex = 12
- Top = 2880
- Width = 495
- End
- Begin VB.Label Label9
- Caption = "Key:"
- Height = 255
- Left = 0
- TabIndex = 11
- Top = 2880
- Width = 495
- End
- Begin VB.Label Label6
- Caption = "Label6"
- Height = 255
- Left = 120
- TabIndex = 8
- Top = 2280
- Width = 2415
- End
- Begin VB.Label Label5
- Caption = "Label5"
- Height = 255
- Left = 120
- TabIndex = 7
- Top = 1440
- Width = 1935
- End
- Begin VB.Label Label4
- Caption = "Label4"
- Height = 255
- Left = 120
- TabIndex = 6
- Top = 1200
- Width = 1935
- End
- Begin VB.Label Label3
- Caption = "Label3"
- Height = 255
- Left = 120
- TabIndex = 5
- Top = 600
- Width = 2775
- End
- Begin VB.Label Label2
- Caption = "Label2"
- Height = 255
- Left = 120
- TabIndex = 4
- Top = 360
- Width = 2775
- End
- Begin VB.Label Label1
- Caption = "Label1"
- Height = 255
- Left = 120
- TabIndex = 3
- Top = 120
- Width = 2775
- End
- Attribute VB_Name = "Sample"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Private Sub Command1_Click()
- End Sub
- Private Sub Command2_Click()
- REG1.EnterkeyCode = Text1.Text
- REG1.TrialDays = Text2.Text
- With REG1
- Label1.Caption = "Todays Date: " & .Today
- Label2.Caption = "Start Date " & .StartDate
- Label3.Caption = "End Date: " & .EndDate
- Label4.Caption = "Trial Days: " & .TrialDays
- Label5.Caption = "Days Left: " & .DaysLeft
- Label11.Caption = "Time Up = " & .Timeup
- Label6.Caption = "KeyCode Is: " & .KeyCode
- End With
- End Sub
- Private Sub Command3_Click()
- With REG1
- If .Timeup = True And .Registered = False Then
- MsgBox "Please Enter A Valid KeyCode!", vbCritical
- Else
- MsgBox "Thank You Your Program Will Now Continue", vbInformation
- End If
- End With
- End Sub
- Private Sub Form_Load()
- With REG1
- Label1.Caption = "Todays Date: " & .Today
- Label2.Caption = "Start Date " & .StartDate
- Label3.Caption = "End Date: " & .EndDate
- Label4.Caption = "Trial Days: " & .TrialDays
- Label5.Caption = "Days Left: " & .DaysLeft
- Label11.Caption = "Time Up = " & .Timeup
- Label6.Caption = "KeyCode Is: " & .KeyCode
- End With
- End Sub
-